package cn.goktech.config;

import cn.goktech.properties.DBConnectionProperties;
import cn.goktech.properties.DBType2JavaType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.sql.Connection;

/**
 * @ClassName DBConnectionConfig
 * @Discription      数据库连接配置类
 * @Author Carter
 * @Date 2021/4/17 21:16
 * @Version 1.0
 **/
@Configuration
public class DBConnectionConfig {

    @Autowired
    private DBConnectionProperties dbConnectionProperties;
    @Autowired
    private DBType2JavaType dbType2JavaType;

    @Bean
    public void test(){
        dbConnectionProperties.getDriverClass();
        dbType2JavaType.getDbType2JavaTypeMap();
    }
}
